//
//  QCProtectFooter.swift
//  爱汽车
//
//  Created by liujianlong on 2023/8/25.
//

import UIKit

class QCProtectFooter: UIView {
    @IBOutlet var slider: UISlider!
    @IBOutlet var value: UILabel!
    var block : ((_ value:Int)->Void)?
    @IBAction func actionForSlider(_ sender: UISlider) {
        value.text = String(format: "%.1fV", CGFloat(sender.value) / 10.0)
        block?(Int(sender.value))
    }
    
    @IBAction func changeForSlider(_ sender: UISlider) {
        value.text = String(format: "%.1fV", CGFloat(sender.value) / 10.0)
    }
}
